package com.santoker.user.service.service.tp.wechat.request;

import com.google.common.collect.Maps;
import com.santoker.baseservice.annotation.HttpParameter;
import com.santoker.user.service.service.tp.wechat.config.WeChatAbstractApi;
import lombok.Builder;
import lombok.Data;

import java.util.Map;

@Data
@Builder
public class WeChatAppUserInfoRequest extends WeChatAbstractApi {

    @HttpParameter
    private String accessToken;

    @HttpParameter
    private String openid;

    public Map<String, Object> getParams() {
        Map<String, Object> params = Maps.newHashMap();
        params.put("access_token", accessToken);
        params.put("openid", openid);
        return params;
    }

}
